<?php
/**
 * @file appactioncount.php $
 * @author LinLin (linlin@haibao.com) $
 * @date 2015-9-15 下午4:44:42 $
 * @brief  $
 */
namespace haibao\app\business;

class ActionStatistic extends \haibao\app\business\Base {

	/**
	 * @var $_instance
	 */
	private static $_instance;

	/**
	 * instance()
	 */
	private static function instance(){
		if(!self::$_instance){
			self::$_instance = new \haibao\app\data\ActionStatistic();
		}
		return self::$_instance;
	}

	/**
	 * 查询所有记录
	 * @param \haibao\app\model\data\AppActionCount
	 */
	public static function getAppActionCount($appUserCountFileter) {
		return self::instance()->getAll ( $appUserCountFileter );
	}
	
	public static function addActionRecord($actionRecordModel){
		self::instance()->add($actionRecordModel);
	}
	
}